package io.renren.dictionary.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

import io.renren.dictionary.dao.TDictionaryItemDao;
import io.renren.dictionary.entity.TDictionaryItemEntity;
import io.renren.dictionary.service.TDictionaryItemService;



@Service("tDictionaryItemService")
public class TDictionaryItemServiceImpl implements TDictionaryItemService {
	@Autowired
	private TDictionaryItemDao tDictionaryItemDao;
	
	@Override
	public TDictionaryItemEntity queryObject(String id){
		return tDictionaryItemDao.queryObject(id);
	}
	
	@Override
	public List<TDictionaryItemEntity> queryList(Map<String, Object> map){
		return tDictionaryItemDao.queryList(map);
	}
	
	@Override
	public int queryTotal(Map<String, Object> map){
		return tDictionaryItemDao.queryTotal(map);
	}
	
	@Override
	public void save(TDictionaryItemEntity tDictionaryItem){
		tDictionaryItemDao.save(tDictionaryItem);
	}
	
	@Override
	public void update(TDictionaryItemEntity tDictionaryItem){
		tDictionaryItemDao.update(tDictionaryItem);
	}
	
	@Override
	public void delete(String id){
		tDictionaryItemDao.delete(id);
	}
	
	@Override
	public void deleteBatch(String[] ids){
		tDictionaryItemDao.deleteBatch(ids);
	}
	
}
